package cn.silver.module.system.bean;

import cn.silver.framework.mybatis.bean.BaseBean;
import cn.silver.module.system.domain.SysDeptUser;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;

/**
 * @author zhouxiaobo
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysDeptUser.class)
@Schema(name = "DeptUserBean", title = "部门用户关联对象")
public class DeptUserBean extends BaseBean {
    @Serial
    private static final long serialVersionUID = 1L;
    @Schema(title = "部门信息主键")
    private String deptId;
    @Schema(title = "岗位信息主键")
    private String userId;
    @Schema(title = "用户信息")
    private UserBean user;
}
